﻿using NewRetail.Application.Components.Platform.Entity;
using System;
using System.ComponentModel.DataAnnotations;

namespace NewRetail.Application.Components.Platform.Model
{
    /// <summary>
    /// 供应商统一结算报表查询条件
    /// </summary>
    public class QueryInOutWarehouseDto
    {
        public DateTime? startTime { get; set; }
        public DateTime? endTime { get; set; }
    }
    public class SupplierWarehouseSettlementDto
    {
        /// <summary>
        /// 供应商Id
        /// </summary>
        public string supplierID { get; set; }
        /// <summary>
        /// 仓库/门店Id
        /// </summary>
        public string warehouseID { get; set; }
        /// <summary>
        /// 结算金额
        /// </summary>
        public decimal settlementAmount { get; set; }
        /// <summary>
        /// 供应商
        /// </summary>
        public Supplier Supplier { get; set; }
        /// <summary>
        /// 仓库/门店
        /// </summary>
        public Warehouse.Entity.Warehouse Warehouse { get; set; }
    }
    /// <summary>
    /// 供应商统一结算显示
    /// </summary>
    public class SupplierUnifiedSettlementShowDto
    {
        /// <summary>
        /// 供应商Id
        /// </summary>
        public string supplierID { get; set; }
        /// <summary>
        /// 仓库/门店Id数组
        /// </summary>
        public string[] warehouseIDs { get; set; }
        /// <summary>
        /// 结算金额数组
        /// </summary>
        public decimal[] settlementAmounts { get; set; }
        /// <summary>
        /// 合计
        /// </summary>
        public decimal totalAmount { get; set; }
        /// <summary>
        /// 已经结算金额
        /// </summary>
        public decimal totalSettlementAmount { get; set; }
        /// <summary>
        /// 供应商
        /// </summary>
        public Supplier Supplier { get; set; }
        /// <summary>
        /// 仓库/门店数组
        /// </summary>
        public Warehouse.Entity.Warehouse[] Warehouses { get; set; }
    }

    /// <summary>
    /// 供应商单门店结算报表查询条件
    /// </summary>
    public class QuerySingleSettlementDto
    {
        /// <summary>
        /// 仓库/门店Id
        /// </summary>
        [Required]
        public string warehouseID { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? startTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? endTime { get; set; }
    }
    /// <summary>
    /// 供应商单门店结算显示
    /// </summary>
    public class SupplierSingleSettlementShowDto
    {
        /// <summary>
        /// 供应商Id
        /// </summary>
        public string supplierID { get; set; }
        /// <summary>
        /// 进货金额
        /// </summary>
        public decimal inAmount { get; set; }
        /// <summary>
        /// 退货金额
        /// </summary>
        public decimal outAmount { get; set; }
        /// <summary>
        /// 供应商
        /// </summary>
        public Supplier Supplier { get; set; }
    }
}
